import csv

input_file = 'movieList.csv'
output_file = 'movieListReal.csv'


with open(input_file,'r',newline='',encoding='utf-8') as inputfile,open(output_file,'w',newline='',encoding='utf-8') as outputfile:
    reader = csv.DictReader(inputfile)
    fieldnames = reader.fieldnames
    writer = csv.DictWriter(outputfile,fieldnames=fieldnames)

    writer.writeheader()

    for row in reader:
        types = row['type'].split('-')
        for t in types:
            new_row = row.copy()
            new_row['type'] = t.strip()
            writer.writerow(new_row)